//
//  ThreadUtil.swift
//  HFUTER
//
//  Created by HD on 15/1/26.
//  Copyright (c) 2015年 HD. All rights reserved.
//

import Foundation

class ThreadUtil {
    
    class func childThread(thread: () -> Void) {
        dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), thread)
    }
    
    class func mainThread(thread: () -> Void) {
        dispatch_async(dispatch_get_main_queue(), thread)
    }
}